<template>
  <a-tooltip>
    <template slot="title">
      <span>{{status ? '启用状态' : '禁用状态'}}</span>
    </template>
    <span @click="$emit('click')" :class="{success: !status, warn: status}">{{status ? '禁用' : '启用'}}</span>
  </a-tooltip>
</template>

<script>
export default {
  props: {
    status: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style>
</style>
